﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    //代理用户
    [Table(Name = "agent_user")]
    public class AgentUser : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        /// 服务中心名称
        /// </summary>
        [Column(Name = "title")]
        public String title { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; } 

        /// <summary>
        /// 姓名
        /// </summary>
        [Column(Name = "realname")]
        public String realname { get; set; }

        /// <summary>
        ///  联系电话
        /// </summary>
        [Column(Name = "mobile")]
        public String mobile { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [Column(Name = "province")]
        public String province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [Column(Name = "city")]
        public String city { get; set; }


        /// <summary>
        /// 县
        /// </summary>
        [Column(Name = "area")]
        public String area { get; set; }

        /// <summary>
        /// 地址 
        /// </summary>
        [Column(Name = "address")]
        public String address { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "addtime",IsDbGenerated=true)]
        public DateTime addtime { get; set; }

        /// <summary>
        /// 确认时间
        /// </summary>
        [Column(Name = "checktime")]
        public DateTime? checktime { get; set; }

        /// <summary>
        ///0,审核中，1可用
        /// </summary>
        [Column(Name = "status")]
        public int status { get; set; }

          /// <summary>
        /// 代理等级 1:县代；2：市代；3：省代； 
        /// </summary>
        [Column(Name = "agent_level")]
        public int agent_level { get; set; }

          /// <summary>
        /// 代激活用户id
        /// </summary>
        [Column(Name = "bduser_id")]
        public int bduser_id { get; set; }
        

         /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "remark")]
        public String remark { get; set; }
        

       
    }
}
